package com.gaotime.app.kernel.job;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public abstract class AbstractTaskJob extends QuartzJobBean {

	protected final Log log = LogFactory.getLog(this.getClass());

	protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
		this.execute();
	}

	protected abstract void execute();

}
